{% extends "layout.html" %}



{% block side %}
    {% if properties.paginator.count > 0 %}
        {% include "property/property_static_filters.html" %}
    {% else %}
        <div>
            <h3>Hot Search Key words</h3>
            <ul>
                <li>Deason Street</li>
                <li>Sunnybank</li>
            </ul>
        </div>
    {% endif %}
{% endblock %}


{% block content %}
    {% if properties.paginator.count > 0 %}
        <!-- Tabs -->
        <div class="span-18 last">
            {% include "property/property_list_tabs.html" with search_key=search_key mode=mode count=properties.paginator.count%}
        </div>


        <!-- Top Status Bar-->
        <div class="span-18 last" style="border-bottom: 1px solid #ccc;padding:10px 0 10px 0;">
            {% include 'property/property_list_status_bar.html' with count=properties.paginator.count properties=properties %}
        </div>

        <!-- Property List -->
        <div class="span-18 last" style="padding: 20px 0 20px 0;">
            {% ifequal mode 'property' %}
                {% include 'property/search_result_property_list.html' with properties=properties %}
            {% endifequal %}
            {% ifequal mode 'transfer' %}
                {% include 'property/search_result_transfer_list.html' with properties=properties %}
            {% endifequal %}
            {% ifequal mode 'listing' %}
                {% include 'property/search_result_listing_list.html' with properties=properties %}
            {% endifequal %}
            {% ifequal mode 'rental' %}
                {% include 'property/search_result_rental_list.html' with properties=properties %}
            {% endifequal %}
        </div>

        <!-- Bottom Status Bar-->
{#        {% include 'property/property_list_status_bar.html' with count=properties.paginator.count properties=properties%}#}

        <!-- Floating Bar -->
        {% include "property/property_list_floating_toolbar.html" %}
    {% else %}
        <h3>No property matches. Try again.</h3>

        <a href={% url state mode=mode state_slug='new_south_wales'|urlencode %}>state</a>
        <a href={% url state mode=mode state_slug='queensland' property_type='house'|urlencode bedroom=4 bathroom=3 car_space=2 max_land_size=999999 min_land_size=200 max_sale_price=100000 min_sale_price=1000000 %}>state filter</a>
        <br>

        <a href={% url city  mode=mode city_slug='brisbane'|urlencode %}>city</a>
        <a href={% url city mode=mode city_slug='brisbane'|urlencode property_type='house'|urlencode bedroom=4 bathroom=3 car_space=2 max_land_size=999999 min_land_size=200 max_sale_price=100000 min_sale_price=1000000 %}>city filter</a>
        <br>

        <a href={% url suburb mode=mode suburb_slug='sunnybank'|urlencode %}>suburb</a>
        <a href={% url suburb mode=mode suburb_slug='sunnybank'|urlencode property_type='house'|urlencode bedroom=4 bathroom=3 car_space=2 max_land_size=999999 min_land_size=200 max_sale_price=100000 min_sale_price=1000000 %}>suburb filter</a>
        <br>

        <a href={% url street mode=mode street_slug='turton_street'|urlencode %}>street</a>
        <a href={% url street mode=mode street_slug='turton_street'|urlencode property_type='house'|urlencode bedroom='unlimit' bathroom='unlimit' car_space='unlimit' max_land_size=999999 min_land_size=200 max_sale_price=100000 min_sale_price=1000000 %}>street filter</a>
        <br>
        
    {% endif %}
{% endblock %}

